package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddressService {
    //查询地址列表
    List<Address> findList();
    //新增地址
    void saveAddress(Address address);
    //修改地址
    void setDefault(Long id);
    //查询默认地址
    Address findDefault();
    //修改地址的回显
    Address findById(Long id);
    //修改地址
    void update(Address address);
    //删除
    void delete(Long ids);
}
